package com.hkrt.demo.domain.interactor

import com.hkrt.demo.data.network.ApiConstants
import com.hkrt.demo.di.scope.PerActivity
import com.hkrt.demo.domain.entity.Shot
import com.hkrt.demo.domain.repository.HkrtRepository
import io.reactivex.Flowable
import javax.inject.Inject

/**
 * Created by Chenjinguang on 02.08.2017.
 */
@PerActivity
class ShotListInteractor @Inject constructor( val hkrtRepository: HkrtRepository) {

    fun popularShotList(count: Int = 500): Flowable<List<Shot>> {
        return hkrtRepository.getShotList(ApiConstants.TYPE_POPULAR, count)
    }

    fun recentShotList(count: Int = 500): Flowable<List<Shot>> {
        return hkrtRepository.getShotList(ApiConstants.TYPE_RECENT, count)
    }
}